package com.mz.ozy.adapter;

import android.content.Context;
import android.text.TextUtils;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mz.ozy.R;
import com.mz.ozy.activity.home.HomeActivity1;
import com.mz.ozy.bean.HomeMerBean;
import com.mz.ozy.bean.MyShopBean;
import com.mz.ozy.utils.glideUtils.GlideUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lifeStyle on 2020/4/3 0003.
 */
public class AdverAdapter extends BaseQuickAdapter<HomeMerBean.BannerListBean, BaseViewHolder> {

    private final Context context;

    public AdverAdapter(Context context, List<HomeMerBean.BannerListBean> data) {
        super(R.layout.item_my_adver, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeMerBean.BannerListBean item) {
        ImageView ivIcon = helper.getView(R.id.iv_know_ozy);
        GlideUtils.loadRoundImg(context, ivIcon, item.getImgPath(), R.mipmap.bg_know_ozy, 4);
    }
}
